.class Lrexsee/multimedia/RexseeVideoCapture$3;
.super Ljava/lang/Object;
.source "RexseeVideoCapture.java"

# interfaces
.implements Landroid/view/SurfaceHolder$Callback;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lrexsee/multimedia/RexseeVideoCapture;->start(Ljava/lang/String;Ljava/lang/String;)Z
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lrexsee/multimedia/RexseeVideoCapture;

.field private final synthetic val$target:Ljava/io/File;


# direct methods
.method constructor <init>(Lrexsee/multimedia/RexseeVideoCapture;Ljava/io/File;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lrexsee/multimedia/RexseeVideoCapture$3;->this$0:Lrexsee/multimedia/RexseeVideoCapture;

    iput-object p2, p0, Lrexsee/multimedia/RexseeVideoCapture$3;->val$target:Ljava/io/File;

    .line 87
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public surfaceChanged(Landroid/view/SurfaceHolder;III)V
    .locals 0
    .param p1, "holder"    # Landroid/view/SurfaceHolder;
    .param p2, "format"    # I
    .param p3, "w"    # I
    .param p4, "h"    # I

    .prologue
    .line 90
    return-void
.end method

.method public surfaceCreated(Landroid/view/SurfaceHolder;)V
    .locals 6
    .param p1, "holder"    # Landroid/view/SurfaceHolder;

    .prologue
    .line 94
    :try_start_0
    iget-object v1, p0, Lrexsee/multimedia/RexseeVideoCapture$3;->this$0:Lrexsee/multimedia/RexseeVideoCapture;

    iget-object v2, p0, Lrexsee/multimedia/RexseeVideoCapture$3;->this$0:Lrexsee/multimedia/RexseeVideoCapture;

    # getter for: Lrexsee/multimedia/RexseeVideoCapture;->mCaptureArguments:Lrexsee/multimedia/MediaCaptureArguments;
    invoke-static {v2}, Lrexsee/multimedia/RexseeVideoCapture;->access$1(Lrexsee/multimedia/RexseeVideoCapture;)Lrexsee/multimedia/MediaCaptureArguments;

    move-result-object v2

    const/4 v3, 0x0

    iget-object v4, p0, Lrexsee/multimedia/RexseeVideoCapture$3;->this$0:Lrexsee/multimedia/RexseeVideoCapture;

    # getter for: Lrexsee/multimedia/RexseeVideoCapture;->mErrorListener:Landroid/media/MediaRecorder$OnErrorListener;
    invoke-static {v4}, Lrexsee/multimedia/RexseeVideoCapture;->access$2(Lrexsee/multimedia/RexseeVideoCapture;)Landroid/media/MediaRecorder$OnErrorListener;

    move-result-object v4

    iget-object v5, p0, Lrexsee/multimedia/RexseeVideoCapture$3;->this$0:Lrexsee/multimedia/RexseeVideoCapture;

    # getter for: Lrexsee/multimedia/RexseeVideoCapture;->mInfoListener:Landroid/media/MediaRecorder$OnInfoListener;
    invoke-static {v5}, Lrexsee/multimedia/RexseeVideoCapture;->access$3(Lrexsee/multimedia/RexseeVideoCapture;)Landroid/media/MediaRecorder$OnInfoListener;

    move-result-object v5

    invoke-virtual {v2, v3, p1, v4, v5}, Lrexsee/multimedia/MediaCaptureArguments;->getRecorder(Landroid/hardware/Camera;Landroid/view/SurfaceHolder;Landroid/media/MediaRecorder$OnErrorListener;Landroid/media/MediaRecorder$OnInfoListener;)Landroid/media/MediaRecorder;

    move-result-object v2

    invoke-static {v1, v2}, Lrexsee/multimedia/RexseeVideoCapture;->access$4(Lrexsee/multimedia/RexseeVideoCapture;Landroid/media/MediaRecorder;)V

    .line 95
    iget-object v1, p0, Lrexsee/multimedia/RexseeVideoCapture$3;->this$0:Lrexsee/multimedia/RexseeVideoCapture;

    # getter for: Lrexsee/multimedia/RexseeVideoCapture;->mRecorder:Landroid/media/MediaRecorder;
    invoke-static {v1}, Lrexsee/multimedia/RexseeVideoCapture;->access$5(Lrexsee/multimedia/RexseeVideoCapture;)Landroid/media/MediaRecorder;

    move-result-object v1

    iget-object v2, p0, Lrexsee/multimedia/RexseeVideoCapture$3;->val$target:Ljava/io/File;

    invoke-virtual {v2}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/media/MediaRecorder;->setOutputFile(Ljava/lang/String;)V

    .line 96
    iget-object v1, p0, Lrexsee/multimedia/RexseeVideoCapture$3;->this$0:Lrexsee/multimedia/RexseeVideoCapture;

    # getter for: Lrexsee/multimedia/RexseeVideoCapture;->mRecorder:Landroid/media/MediaRecorder;
    invoke-static {v1}, Lrexsee/multimedia/RexseeVideoCapture;->access$5(Lrexsee/multimedia/RexseeVideoCapture;)Landroid/media/MediaRecorder;

    move-result-object v1

    invoke-virtual {v1}, Landroid/media/MediaRecorder;->prepare()V

    .line 97
    iget-object v1, p0, Lrexsee/multimedia/RexseeVideoCapture$3;->this$0:Lrexsee/multimedia/RexseeVideoCapture;

    # getter for: Lrexsee/multimedia/RexseeVideoCapture;->mRecorder:Landroid/media/MediaRecorder;
    invoke-static {v1}, Lrexsee/multimedia/RexseeVideoCapture;->access$5(Lrexsee/multimedia/RexseeVideoCapture;)Landroid/media/MediaRecorder;

    move-result-object v1

    invoke-virtual {v1}, Landroid/media/MediaRecorder;->start()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 101
    :cond_0
    :goto_0
    return-void

    .line 98
    :catch_0
    move-exception v1

    move-object v0, v1

    .line 99
    .local v0, "e":Ljava/lang/Exception;
    iget-object v1, p0, Lrexsee/multimedia/RexseeVideoCapture$3;->this$0:Lrexsee/multimedia/RexseeVideoCapture;

    # getter for: Lrexsee/multimedia/RexseeVideoCapture;->mBrowser:Lrexsee/core/browser/Browser;
    invoke-static {v1}, Lrexsee/multimedia/RexseeVideoCapture;->access$0(Lrexsee/multimedia/RexseeVideoCapture;)Lrexsee/core/browser/Browser;

    move-result-object v1

    if-eqz v1, :cond_0

    iget-object v1, p0, Lrexsee/multimedia/RexseeVideoCapture$3;->this$0:Lrexsee/multimedia/RexseeVideoCapture;

    # getter for: Lrexsee/multimedia/RexseeVideoCapture;->mBrowser:Lrexsee/core/browser/Browser;
    invoke-static {v1}, Lrexsee/multimedia/RexseeVideoCapture;->access$0(Lrexsee/multimedia/RexseeVideoCapture;)Lrexsee/core/browser/Browser;

    move-result-object v1

    iget-object v2, p0, Lrexsee/multimedia/RexseeVideoCapture$3;->this$0:Lrexsee/multimedia/RexseeVideoCapture;

    invoke-virtual {v2}, Lrexsee/multimedia/RexseeVideoCapture;->getInterfaceName()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2, v0}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/Exception;)V

    goto :goto_0
.end method

.method public surfaceDestroyed(Landroid/view/SurfaceHolder;)V
    .locals 2
    .param p1, "holder"    # Landroid/view/SurfaceHolder;

    .prologue
    .line 104
    iget-object v0, p0, Lrexsee/multimedia/RexseeVideoCapture$3;->this$0:Lrexsee/multimedia/RexseeVideoCapture;

    # getter for: Lrexsee/multimedia/RexseeVideoCapture;->mRecorder:Landroid/media/MediaRecorder;
    invoke-static {v0}, Lrexsee/multimedia/RexseeVideoCapture;->access$5(Lrexsee/multimedia/RexseeVideoCapture;)Landroid/media/MediaRecorder;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 106
    :try_start_0
    iget-object v0, p0, Lrexsee/multimedia/RexseeVideoCapture$3;->this$0:Lrexsee/multimedia/RexseeVideoCapture;

    # getter for: Lrexsee/multimedia/RexseeVideoCapture;->mRecorder:Landroid/media/MediaRecorder;
    invoke-static {v0}, Lrexsee/multimedia/RexseeVideoCapture;->access$5(Lrexsee/multimedia/RexseeVideoCapture;)Landroid/media/MediaRecorder;

    move-result-object v0

    invoke-virtual {v0}, Landroid/media/MediaRecorder;->stop()V

    .line 107
    iget-object v0, p0, Lrexsee/multimedia/RexseeVideoCapture$3;->this$0:Lrexsee/multimedia/RexseeVideoCapture;

    # getter for: Lrexsee/multimedia/RexseeVideoCapture;->mRecorder:Landroid/media/MediaRecorder;
    invoke-static {v0}, Lrexsee/multimedia/RexseeVideoCapture;->access$5(Lrexsee/multimedia/RexseeVideoCapture;)Landroid/media/MediaRecorder;

    move-result-object v0

    invoke-virtual {v0}, Landroid/media/MediaRecorder;->release()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 110
    :goto_0
    iget-object v0, p0, Lrexsee/multimedia/RexseeVideoCapture$3;->this$0:Lrexsee/multimedia/RexseeVideoCapture;

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lrexsee/multimedia/RexseeVideoCapture;->access$4(Lrexsee/multimedia/RexseeVideoCapture;Landroid/media/MediaRecorder;)V

    .line 112
    :cond_0
    return-void

    .line 108
    :catch_0
    move-exception v0

    goto :goto_0
.end method
